{% extends "base.html" %}
{% load i18n %}

{% block content %}

<h1>Rejestracja</h1>

<form method="POST" action=".">{% csrf_token %}
<table class="tabela">
  {% if form.errors %}
	<tr> 
		<td colspan="2" class="errorMessage">
			{{form.errors}}
		</td>
	</tr>
  {% else %}  
  {% endif %}
	<tr>
		<td>
			<label for="id_username">Nazwa użytkownika:</label>
		</td>
		<td>
			<input id="id_username" type="text" class="required" name="username" maxlength="30" /> 
		</td>
	</tr>
	<tr>
		<td>
			<label for="id_email">Adres email:</label>
		</td>
		<td>
			<input id="id_email" type="text" class="required" name="email" maxlength="75" />
		</td>
	</tr>
	<tr>
		<td>
			<label for="id_password1">Hasło:</label>
		</td>
		<td>
			<input id="id_password1" type="password" class="required" name="password1" />
		</td>
	</tr>
	<tr>
		<td>
			<label for="id_password2">Powtórz hasło:</label>
		</td>
		<td>
			<input id="id_password2" type="password" class="required" name="password2" />
		</td>
	</tr>
	<tr>
	<td><input type="submit" class="myButton" value="{% trans 'Rejestruj' %}" /></td>
	</tr>
	
  </table>
  
  
  
</form>
{% endblock %}
